package org.administer.pojo;

import java.io.Serializable;
import java.util.Objects;

public class CrmShopping implements Serializable {
    private Integer id;
    private String name;
    private Integer storeid;
    private String unit;
    private Integer price;
    private Integer totalnum;
    private String remark;
    private CrmStore crmStore;
    private int num;
    private int fuzhu;


    public int getFuzhu() {
        return fuzhu;
    }

    public void setFuzhu(int fuzhu) {
        this.fuzhu = fuzhu;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public CrmStore getCrmStore() {
        return crmStore;
    }

    public void setCrmStore(CrmStore crmStore) {
        this.crmStore = crmStore;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getStoreid() {
        return storeid;
    }

    public void setStoreid(Integer storeid) {
        this.storeid = storeid;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public Integer getTotalnum() {
        return totalnum;
    }

    public void setTotalnum(Integer totalnum) {
        this.totalnum = totalnum;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        CrmShopping that = (CrmShopping) o;
        return Objects.equals(id, that.id) &&
                Objects.equals(name, that.name) &&
                Objects.equals(storeid, that.storeid) &&
                Objects.equals(unit, that.unit) &&
                Objects.equals(price, that.price) &&
                Objects.equals(totalnum, that.totalnum) &&
                Objects.equals(remark, that.remark);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, name, storeid, unit, price, totalnum, remark);
    }
}
